package spatialmarketplace.cem.action;

import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;
import net.sourceforge.stripes.util.Log;
import spatialmarketplace.cem.ext.CEMActionBeanContext;

/** Class BaseActionBean
 *  When you add an action bean, you can just extend this class and get
    on with your business. BaseActionBean is also the place to put any other
    common code that you might want to reuse in all action beans.
    
    @author Laura Andreina
 **/
public abstract class BaseActionBean implements ActionBean {
    private static final Log logger = Log.getInstance(BaseActionBean.class);
    private CEMActionBeanContext context;

    /**
     * Get the application context 
     * @return context
     */
    public CEMActionBeanContext getContext() {
        logger.info("********* BaseActionBean.getContext()***************");
        return context;
    }

     /**
     * Set the application context 
     * @param context
     */
    public void setContext(ActionBeanContext context) {
        this.context = (CEMActionBeanContext) context;
    }
    
}
